package com.zq.structure.facade;

public class Facade {
    private SubSys1 subSys1;
    private SubSys2 subSys2;

    public Facade() {
        this.subSys1 = new SubSys1();
        this.subSys2 = new SubSys2();
    }

    public boolean isValid(Student student) {
        return subSys1.isAgeValid(student) && subSys2.isGenderValid(student);
    }
}
